<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="sky" uri="/WEB-INF/custom.tld" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="/resources/style1.css" />
    <link rel="stylesheet" type="text/css" href="/resources/header.css" />
    <link rel="stylesheet" type="text/css" href="/resources/style.css" />
    <link rel="stylesheet" type="text/css" href="/resources/flightInfo.css" />
    <script src="/resources/jquery-2.0.0.js"></script>
    <script src="/resources/script.js" ></script>
    <script src="/resources/flightInfo.js"></script>
</head>
<body>
<div id="wrapper">
    <sky:include url="components/header.jsp"/>
    <div id="page">
        <div id="content">
            <div class="post">
                <c:set var="step" value="3" scope="request" />
                <jsp:include page="components/bookingSteps.jsp" />
                <hr color="#3a75c4">
                <form:form commandName="tickets" cssClass="form1">
                    <c:forEach items="${tickets.ticketList}" var="ticket" varStatus="status" >
                        <form:hidden path="ticketList[${status.index}].user.id" />
                        <p><spring:message code="label.firstname" />:
                        <form:input path="ticketList[${status.index}].user.firstName" /></p>
                        <p><spring:message code="label.lastname" />:
                        <form:input path="ticketList[${status.index}].user.secondName" /></p>
                        <p><spring:message code="label.telephone" />:
                        <form:input path="ticketList[${status.index}].user.telephone" /></p>
                        <p><form:checkbox path="ticketList[${status.index}].user.child" />
                        <spring:message code="label.child" />
                        <spring:message code="label.row" />:
                        <form:select path="ticketList[${status.index}].row" size="1">
                            <form:options items="${rowsCount}" />
                        </form:select>
                        <%--<form:input path="ticketList[${status.index}].row" />--%>
                        <spring:message code="label.place" />:
                        <%--<form:input path="ticketList[${status.index}].place" />--%>
                        <form:select path="ticketList[${status.index}].place" >
                            <form:options items="${placesCount}" />
                        </form:select></p>
                        <hr color="#3a75c4">
                    </c:forEach>
                    <input type="submit" value="Продолжить" style="float: right; margin-right: 150px" />
                </form:form>
            </div>
            <div style="clear: both;">&nbsp;</div>
        </div>
        <!-- end #content -->
        <jsp:include page="components/sidebar.jsp" />
        <!-- end #sidebar -->
        <div style="clear: both;">&nbsp;</div>
    </div>
</div>
<div id="footer-content">&copy; Кси</div>
<div id="footer"></div>
</body>
</html>